package com.beaut.project.util;

import java.util.HashMap;
import java.util.Map;

@SuppressWarnings("unchecked")
public class FlowUtility {
	public  static final Map mFlow=new HashMap();
	public  static final Map mFlow2=new HashMap();
	
   //--------------------工单内容创建审批流程参数定义-------------------------------------------------------	
	/*业务的审批名称*/
	public static final String GD_SHENPI="工单内容审批";
	public static final String GD_REUSE_SHENPI="工单现场利旧审批";
	public static final String GD_SELFREQUEST_SHENPI="工单乙供领料审批";
	public static final String GD_RECOVERY_SHENPI="工单拆旧回收审批";
	public static final String GD_JD_SHENPI="工单现场交底审批";
	public static final String GD_BORROW_CUSTOMER_SHENPI="工单甲供借客户库审批";
	public static final String GD_RETURN_CUSTOMER_SHENPI="工单甲供还客户库审批";
	public static final String GD_BORROW_SELF_SHENPI="工单甲供借工余库审批";
	public static final String GD_RETURN_SELF_SHENPI="工单甲供还工余库审批";
	public static final String GD_PURCHASE_APPLY_SHENPI="工单采购申请";
	public static final String GD_PURCHASE_SHENPI="订货单审批";
	public static final String GD_PRODUCT_IN_SHENPI="入库单审批";
	public static final String GD_LOAN_SHENPI="员工借款审批";
	public static final String GD_ADVANCES_SHENPI="班组垫款审批";
	public static final String GD_ADVANCES_YET_SHENPI="班组垫款还款审批";
	public static final String GD_JG_REQUEST_SHENPI="甲供领料出库";
	public static final String GD_PURCHASE_APPLY_USE_SHENPI="工单采购领用申请";
	public static final String GD_SUPPLIER_APPLY_SHENPI="领用厂家库申请";
	public static final String GD_RETURN_APPLY_SHENPI="退料申请审批";
	public static final String GD_BALANCE_SHENPI="成本固化审批";
	public static final String GD_CHANGE_ASSUME_SHENPI="预算调整";
	public static final String GD_RETURN_MATERIAL_SHENPI="工单领料退料审批";
	public static final String GD_SHENPI_W="微型工单内容审批";
	public static final String GD_JD_SHENPI_W="微型工单现场交底审批";
	public static final String GD_BALANCE_SHENPI_W="微型成本固化审批";
	public static final String GD_NEW_ADVANCES_SHENPI="新班组垫款审批";
	public static final String GD_EMPLOYEE_SHENPI="员工借款审批";
	public static final String GD_EMPLOYEE_REIMBURSEME_SHENPI="员工借款报账审批";
	//业务的流程ID
	public static final int GD_SHENPI_ID=689;
	public static final int GD_REUSE_SHENPI_ID=690;
	public static final int GD_SELFREQUEST_SHENPI_ID=691;
	public static final int GD_RECOVERY_SHENPI_ID=692;
	public static final int GD_JD_SHENPI_ID=693;
	public static final int GD_BORROW_CUSTOMER_SHENPI_ID=694;
	public static final int GD_RETURN_CUSTOMER_SHENPI_ID=696;
	public static final int GD_BORROW_SELF_SHENPI_ID=698;
	public static final int GD_RETURN_SELF_SHENPI_ID=699;
	public static final int GD_PURCHASE_APPLY_SHENPI_ID=701;
	public static final int GD_PURCHASE_SHENPI_ID=702;
	public static final int GD_PRODUCT_IN_SHENPI_ID=703;
	public static final int GD_LOAN_SHENPI_ID=704;
	public static final int GD_ADVANCES_SHENPI_ID=705;
	public static final int GD_ADVANCES_YET_SHENPI_ID=706;
	public static final int GD_JG_REQUEST_SHENPI_ID=708;
	public static final int GD_PURCHASE_APPLY_USE_SHENPI_ID=710;
	public static final int GD_SUPPLIER_APPLY_SHENPI_ID=711;
	public static final int GD_RETURN_APPLY_SHENPI_ID=718;
	public static final int GD_BALANCE_SHENPI_ID=719;
	public static final int GD_CHANGE_ASSUME_SHENPI_ID=726;
	public static final int GD_RETURN_MATERIAL_SHENPI_ID=732;
	public static final int GD_SHENPI_W_ID=737;
	public static final int GD_JD_SHENPI_W_ID=738;
	public static final int GD_BALANCE_SHENPI_W_ID=739;
	public static final int GD_NEW_ADVANCES_SHENPI_ID=740;
	public static final int GD_EMPLOYEE_SHENPI_ID=741;
	public static final int GD_EMPLOYEE_REIMBURSEME_SHENPI_ID=742;
	
	
    static{
    	//创建业务的流程参数对象：参数分别为1、业务的审批名称 2、业务的流程ID 3、流程作用业务对象状态的表名称 
    	//4、流程作用业务对象状态的表对应的字段名称，默认status 5、流程审批通过或者不通过后业务处理的url,
    	//默认返回2个参数key(业务主键)="+businessKey+"&status(业务审批状态，目前只有通过2，不通过3.)="+updateStatus
    	BusinessFlowParam b689=	new BusinessFlowParam(GD_SHENPI,GD_SHENPI_ID,"gd_content",null,"/springMVC/workFlow/backToGDUpdateGDBaseStatus");
	    mFlow.put(GD_SHENPI,b689);
	    mFlow2.put(GD_SHENPI_ID, b689);	
	    BusinessFlowParam b690=	new BusinessFlowParam(GD_REUSE_SHENPI,GD_REUSE_SHENPI_ID,"gd_use_old_material",null,"/springMVC/workFlow/backToGDReuse");
	    mFlow.put(GD_REUSE_SHENPI,b690);
	    mFlow2.put(GD_REUSE_SHENPI_ID, b690);	
	    BusinessFlowParam b691=	new BusinessFlowParam(GD_SELFREQUEST_SHENPI,GD_SELFREQUEST_SHENPI_ID,"gd_self_request",null,"/springMVC/workFlow/backToGDSelfRequest");
	    mFlow.put(GD_SELFREQUEST_SHENPI,b691);
	    mFlow2.put(GD_SELFREQUEST_SHENPI_ID, b691);	
	    BusinessFlowParam b692=	new BusinessFlowParam(GD_RECOVERY_SHENPI,GD_RECOVERY_SHENPI_ID,"gd_recovery_material",null,"/springMVC/workFlow/backToGDRecoveryMaterial");
	    mFlow.put(GD_RECOVERY_SHENPI,b692);
	    mFlow2.put(GD_RECOVERY_SHENPI_ID, b692);	
	    BusinessFlowParam b693=	new BusinessFlowParam(GD_JD_SHENPI,GD_JD_SHENPI_ID,"gd_description",null,null);
	    mFlow.put(GD_JD_SHENPI,b693);
	    mFlow2.put(GD_JD_SHENPI_ID, b693);	
	    BusinessFlowParam b694=	new BusinessFlowParam(GD_BORROW_CUSTOMER_SHENPI,GD_BORROW_CUSTOMER_SHENPI_ID,"gd_customer_borrow",null,"/springMVC/workFlow/backToGDBorrowCustomer");
	    mFlow.put(GD_BORROW_CUSTOMER_SHENPI,b694);
	    mFlow2.put(GD_BORROW_CUSTOMER_SHENPI_ID, b694);	
	    BusinessFlowParam b696=	new BusinessFlowParam(GD_RETURN_CUSTOMER_SHENPI,GD_RETURN_CUSTOMER_SHENPI_ID,"gd_customer_return",null,"/springMVC/workFlow/backToGDReturnCustomer");
	    mFlow.put(GD_RETURN_CUSTOMER_SHENPI,b696);
	    mFlow2.put(GD_RETURN_CUSTOMER_SHENPI_ID, b696);	
	    BusinessFlowParam b698=	new BusinessFlowParam(GD_BORROW_SELF_SHENPI,GD_BORROW_SELF_SHENPI_ID,"gd_customer_borrow",null,"/springMVC/workFlow/backToGDBorrowSelf");
	    mFlow.put(GD_BORROW_SELF_SHENPI,b698);
	    mFlow2.put(GD_BORROW_SELF_SHENPI_ID, b698);	
	    BusinessFlowParam b699=	new BusinessFlowParam(GD_RETURN_SELF_SHENPI,GD_RETURN_SELF_SHENPI_ID,"gd_customer_return",null,"/springMVC/workFlow/backToGDReturnSelf");
	    mFlow.put(GD_RETURN_SELF_SHENPI,b699);
	    mFlow2.put(GD_RETURN_SELF_SHENPI_ID, b699);	
	    BusinessFlowParam b701=	new BusinessFlowParam(GD_PURCHASE_APPLY_SHENPI,GD_PURCHASE_APPLY_SHENPI_ID,"gd_purchase_apply",null,"/springMVC/workFlow/backToGDPurchaseApply");
	    mFlow.put(GD_PURCHASE_APPLY_SHENPI,b701);
	    mFlow2.put(GD_PURCHASE_APPLY_SHENPI_ID, b701);	
	    BusinessFlowParam b702=	new BusinessFlowParam(GD_PURCHASE_SHENPI,GD_PURCHASE_SHENPI_ID,"gd_purchase",null,null);
	    mFlow.put(GD_PURCHASE_SHENPI,b702);
	    mFlow2.put(GD_PURCHASE_SHENPI_ID, b702);	
	    BusinessFlowParam b703=	new BusinessFlowParam(GD_PRODUCT_IN_SHENPI,GD_PRODUCT_IN_SHENPI_ID,"gd_purchase_product_in",null,"/springMVC/workFlow/backToProductIn");
	    mFlow.put(GD_PRODUCT_IN_SHENPI,b703);
	    mFlow2.put(GD_PRODUCT_IN_SHENPI_ID, b703);	
	    BusinessFlowParam b704=	new BusinessFlowParam(GD_LOAN_SHENPI,GD_LOAN_SHENPI_ID,"gd_loan",null,null);
	    mFlow.put(GD_LOAN_SHENPI,b704);
	    mFlow2.put(GD_LOAN_SHENPI_ID, b704);	
	    BusinessFlowParam b705=	new BusinessFlowParam(GD_ADVANCES_SHENPI,GD_ADVANCES_SHENPI_ID,"gd_advances",null,null);
	    mFlow.put(GD_ADVANCES_SHENPI,b705);
	    mFlow2.put(GD_ADVANCES_SHENPI_ID, b705);	
	    BusinessFlowParam b706=	new BusinessFlowParam(GD_ADVANCES_YET_SHENPI,GD_ADVANCES_YET_SHENPI_ID,"gd_yet_advances",null,"/springMVC/workFlow/backToGDAdvances");
	    mFlow.put(GD_ADVANCES_YET_SHENPI,b706);
	    mFlow2.put(GD_ADVANCES_YET_SHENPI_ID, b706);	
	    BusinessFlowParam b708=	new BusinessFlowParam(GD_JG_REQUEST_SHENPI,GD_JG_REQUEST_SHENPI_ID,"gd_jg_request_materia",null,"/springMVC/workFlow/backToGDJgRequest");
	    mFlow.put(GD_JG_REQUEST_SHENPI,b708);
	    mFlow2.put(GD_JG_REQUEST_SHENPI_ID, b708);	
	    BusinessFlowParam b710=	new BusinessFlowParam(GD_PURCHASE_APPLY_USE_SHENPI,GD_PURCHASE_APPLY_USE_SHENPI_ID,"gd_purchase_apply_use",null,"/springMVC/workFlow/backToGDPurchaseApplyUse");
	    mFlow.put(GD_PURCHASE_APPLY_USE_SHENPI,b710);
	    mFlow2.put(GD_PURCHASE_APPLY_USE_SHENPI_ID, b710);	
	    BusinessFlowParam b711=	new BusinessFlowParam(GD_SUPPLIER_APPLY_SHENPI,GD_SUPPLIER_APPLY_SHENPI_ID,"gd_supplier_apply",null,"/springMVC/workFlow/backToGDSupplierApply");
	    mFlow.put(GD_SUPPLIER_APPLY_SHENPI,b711);
	    mFlow2.put(GD_SUPPLIER_APPLY_SHENPI_ID, b711);	
	    BusinessFlowParam b718=	new BusinessFlowParam(GD_RETURN_APPLY_SHENPI,GD_RETURN_APPLY_SHENPI_ID,"gd_return_apply_use",null,"/springMVC/workFlow/backToGDReturnApply");
	    mFlow.put(GD_RETURN_APPLY_SHENPI,b718);
	    mFlow2.put(GD_RETURN_APPLY_SHENPI_ID, b718);	
	    BusinessFlowParam b719=	new BusinessFlowParam(GD_BALANCE_SHENPI,GD_BALANCE_SHENPI_ID,"gd_base","balance_status","/springMVC/workFlow/backToGDBalance");
	    mFlow.put(GD_BALANCE_SHENPI,b719);
	    mFlow2.put(GD_BALANCE_SHENPI_ID, b719);	
	    BusinessFlowParam b726=	new BusinessFlowParam(GD_CHANGE_ASSUME_SHENPI,GD_CHANGE_ASSUME_SHENPI_ID,"gd_assume_change","status","/springMVC/workFlow/backToGDChangeAssume");
	    mFlow.put(GD_CHANGE_ASSUME_SHENPI,b726);
	    mFlow2.put(GD_CHANGE_ASSUME_SHENPI_ID, b726);	
	    BusinessFlowParam b732=	new BusinessFlowParam(GD_RETURN_MATERIAL_SHENPI,GD_RETURN_MATERIAL_SHENPI_ID,"gd_return_apply","status","/springMVC/workFlow/backToGDReturn");
	    mFlow.put(GD_RETURN_MATERIAL_SHENPI,b732);
	    mFlow2.put(GD_RETURN_MATERIAL_SHENPI_ID, b732);	
	    BusinessFlowParam b737=	new BusinessFlowParam(GD_SHENPI_W,GD_SHENPI_W_ID,"gd_content",null,"/springMVC/workFlow/backToGDUpdateGDBaseStatus");
	    mFlow.put(GD_SHENPI_W,b737);
	    mFlow2.put(GD_SHENPI_W_ID, b737);	
	    BusinessFlowParam b738=	new BusinessFlowParam(GD_JD_SHENPI_W,GD_JD_SHENPI_W_ID,"gd_description",null,null);
	    mFlow.put(GD_JD_SHENPI_W,b738);
	    mFlow2.put(GD_JD_SHENPI_W_ID, b738);	
	    BusinessFlowParam b739=	new BusinessFlowParam(GD_BALANCE_SHENPI_W,GD_BALANCE_SHENPI_W_ID,"gd_base","balance_status","/springMVC/workFlow/backToGDBalance");
	    mFlow.put(GD_BALANCE_SHENPI_W,b739);
	    mFlow2.put(GD_BALANCE_SHENPI_W_ID, b739);	
	    BusinessFlowParam b740=	new BusinessFlowParam(GD_NEW_ADVANCES_SHENPI,GD_NEW_ADVANCES_SHENPI_ID,"worker_loan","status",null);
	    mFlow.put(GD_NEW_ADVANCES_SHENPI,b740);
	    mFlow2.put(GD_NEW_ADVANCES_SHENPI_ID, b740);	
	    BusinessFlowParam b741=	new BusinessFlowParam(GD_EMPLOYEE_SHENPI,GD_EMPLOYEE_SHENPI_ID,"employee_loan","status",null);
	    mFlow.put(GD_EMPLOYEE_SHENPI,b741);
	    mFlow2.put(GD_EMPLOYEE_SHENPI_ID, b741);
	    BusinessFlowParam b742=	new BusinessFlowParam(GD_EMPLOYEE_REIMBURSEME_SHENPI,GD_EMPLOYEE_REIMBURSEME_SHENPI_ID,"employee_reimbursement","status","/springMVC/workFlow/employReimbursem");
	    mFlow.put(GD_EMPLOYEE_REIMBURSEME_SHENPI,b742);
	    mFlow2.put(GD_EMPLOYEE_REIMBURSEME_SHENPI_ID, b742);	
	    
    }
    
    //项目立项审批
    public static final String XM_SHENPI="立项审批";
    public static final int XM_SHENPI_ID=695;
    
    public static final String XM_JGC_SHENPI="甲供材入库审批";
    public static final int XM_JGC_SHENPI_ID=700;
    
   
    public static final String XM_INVOICE_SHENPI="项目开票审批";
    public static final int XM_INVOICE_SHENPI_ID= 707;
    
    public static final String XM_INMONEY_SHENPI="项目收款审批";
    public static final int XM_INMONEY_SHENPI_ID= 709;
    public static final String XM_BZ_SHENPI="项目报账审批";
    public static final int XM_BZ_SHENPI_ID= 712;
    public static final String XM_PAYMENT_SHENPI="项目支付审批";
    public static final int XM_PAYMENT_SHENPI_ID= 713;
    public static final String XM_CHECK_SHENPI="项目验收审批";
    public static final int XM_CHECK_SHENPI_ID= 717;
    public static final String XM_CONTRACT_SHENPI="项目合同审批";
    public static final int XM_CONTRACT_SHENPI_ID= 728;
   
    //支付施工进度款
    public static final String XM_PAYMENT_SHIGONG_SHENPI="项目施工款进度支付审批";
    public static final int XM_PAYMENT_SHIGONG_SHENPI_ID=715;
    //材料平衡
    public static final String XM_MATER_BALANCE_SHENPI="项目材料平衡审批";
    public static final int XM_MATER_BALANCE_SHENPI_ID=720;
    //项目收入结算
    public static final String XM_END_INMONEY_BALANCE_SHENPI="项目收入结算审批";
    public static final int XM_END_INMONEY_BALANCE_SHENPI_ID=721;
    //项目支出结算
    public static final String XM_END_PAY_BALANCE_SHENPI="项目支付结算审批";
    public static final int XM_END_PAY_BALANCE_SHENPI_ID=722;
    
    //项目质保金回收结算
    public static final String XM_WARRANTY_SHENPI="项目质保金回收审批";
    public static final int XM_WARRANTY_SHENPI_ID=724;
    //项目质保金回收结算
    public static final String XM_EVALUATION_SHENPI="项目经济考评审批";
    public static final int XM_EVALUATION_SHENPI_ID=725;
    //项目是否无合同审批
    public static final String XM_CONTRACT_NO_SHENPI="项目是否无合同审批";
    public static final int XM_CONTRACT_NO_SHENPI_ID=729;
    //项目结算支付审批
    public static final String XM_END_WORKER_PAY_SHENPI="项目结算施工支付审批";
    public static final int XM_END_WORKER_PAY_SHENPI_ID=730;
    
    //项目结算支付审批
    public static final String XM_END_SUPPLY_PAY_SHENPI="项目结算采购支付审批";
    public static final int XM_END_SUPPLY_PAY_SHENPI_ID=731;
    //甲供材出库
    public static final String XM_JGC_OUT_SHENPI="甲供材出库审批";
    public static final int XM_JGC_OUT_SHENPI_ID=733;
    
    static{
    	//创建业务的流程参数对象：参数分别为1、业务的审批名称 2、业务的流程ID 3、流程作用业务对象状态的表名称 
    	//4、流程作用业务对象状态的表对应的字段名称，默认status 5、流程审批通过或者不通过后业务处理的url,
    	//默认返回2个参数key(业务主键)="+businessKey+"&status(业务审批状态，目前只有通过2，不通过3.)="+updateStatus
//    	BusinessFlowParam b695=	new BusinessFlowParam(XM_SHENPI,XM_SHENPI_ID,"xm_base","xm_flow_status","/springMVC/xm/backFlowToXMBaseStatus");
    	BusinessFlowParam b695=	new BusinessFlowParam(XM_SHENPI,XM_SHENPI_ID,"xm_base","xm_flow_status","/springMVC/workFlow/backFlowToXMBaseStatus");
	    mFlow.put(XM_SHENPI,b695);
	    mFlow2.put(XM_SHENPI_ID, b695);	
	    
    	//BusinessFlowParam b700=	new BusinessFlowParam(XM_JGC_SHENPI,XM_JGC_SHENPI_ID,"xm_flow_in_warehouse","status","/springMVC/xm/backFlowToXMFlowInWarehouseStatus");
	    BusinessFlowParam b700=	new BusinessFlowParam(XM_JGC_SHENPI,XM_JGC_SHENPI_ID,"xm_flow_in_warehouse","status","/springMVC/workFlow/backFlowToXMFlowInWarehouseStatus");
	    mFlow.put(XM_JGC_SHENPI,b700);
	    mFlow2.put(XM_JGC_SHENPI_ID, b700);	
	    
//    	BusinessFlowParam b707=	new BusinessFlowParam(XM_INVOICE_SHENPI,XM_INVOICE_SHENPI_ID,"xm_invoice","status","/springMVC/xmFinance/backFlowToXMBasesDeal");
	    BusinessFlowParam b707=	new BusinessFlowParam(XM_INVOICE_SHENPI,XM_INVOICE_SHENPI_ID,"xm_invoice","status","/springMVC/workFlow/backFlowToXMBasesDeal");
	    mFlow.put(XM_INVOICE_SHENPI,b707);
	    mFlow2.put(XM_INVOICE_SHENPI_ID, b707);	
	    //进度收款审批
//    	BusinessFlowParam b709=	new BusinessFlowParam(XM_INMONEY_SHENPI,XM_INMONEY_SHENPI_ID,"xm_in_money","status","/springMVC/xmFinance/backFlowToXMInMoneyDeal");
	    BusinessFlowParam b709=	new BusinessFlowParam(XM_INMONEY_SHENPI,XM_INMONEY_SHENPI_ID,"xm_in_money","status","/springMVC/workFlow/backFlowToXMInMoneyDeal");
	    mFlow.put(XM_INMONEY_SHENPI,b709);
	    mFlow2.put(XM_INMONEY_SHENPI_ID, b709);	
	    //进度付款审批
    	BusinessFlowParam b713=	new BusinessFlowParam(XM_PAYMENT_SHENPI,XM_PAYMENT_SHENPI_ID,"xm_pay","status","/springMVC/workFlow/backFlowToXMPayDeal");
	    mFlow.put(XM_PAYMENT_SHENPI,b713);
	    mFlow2.put(XM_PAYMENT_SHENPI_ID, b713);		    
	    
	    
	    BusinessFlowParam b712=	new BusinessFlowParam(XM_BZ_SHENPI,XM_BZ_SHENPI_ID,"xm_reimbursement","status","/springMVC/workFlow/backToUpdateXMBz");
	    mFlow.put(XM_BZ_SHENPI,b712);
	    mFlow2.put(XM_BZ_SHENPI_ID, b712);	
	    //验收审批
	    BusinessFlowParam b717=	new BusinessFlowParam(XM_CHECK_SHENPI,XM_CHECK_SHENPI_ID,"xm_check","status","/springMVC/workFlow/backToGDUpdateXmCheckStatus");
	    mFlow.put(XM_CHECK_SHENPI,b717);
	    mFlow2.put(XM_CHECK_SHENPI_ID, b717);		    
	    //进度分包付款审批
	    BusinessFlowParam b715=	new BusinessFlowParam(XM_PAYMENT_SHIGONG_SHENPI,XM_PAYMENT_SHIGONG_SHENPI_ID,"xm_pay","status","/springMVC/workFlow/backFlowToXMPayWorkerDeal");
	    mFlow.put(XM_PAYMENT_SHIGONG_SHENPI,b715);
	    mFlow2.put(XM_PAYMENT_SHIGONG_SHENPI_ID, b715);
	    //材料平衡审批
	    BusinessFlowParam b720=	new BusinessFlowParam(XM_MATER_BALANCE_SHENPI,XM_MATER_BALANCE_SHENPI_ID,"xm_base","xm_material_balance_status","/springMVC/workFlow/backFlowToXMMaterBalanceDeal");
	    mFlow.put(XM_MATER_BALANCE_SHENPI,b720);
	    mFlow2.put(XM_MATER_BALANCE_SHENPI_ID, b720);
	    //收入结算审批
	    BusinessFlowParam b721=	new BusinessFlowParam(XM_END_INMONEY_BALANCE_SHENPI,XM_END_INMONEY_BALANCE_SHENPI_ID,"xm_base","xm_inmoney_balance_status","/springMVC/workFlow/backFlowToXMInmoneyBalanceDeal");
	    mFlow.put(XM_END_INMONEY_BALANCE_SHENPI,b721);
	    mFlow2.put(XM_END_INMONEY_BALANCE_SHENPI_ID, b721);
	    //支付结算审批
	    BusinessFlowParam b722=	new BusinessFlowParam(XM_END_PAY_BALANCE_SHENPI,XM_END_PAY_BALANCE_SHENPI_ID,"xm_base","xm_payment_balance_status","/springMVC/workFlow/backFlowToXMPayBalanceDeal");
	    mFlow.put(XM_END_PAY_BALANCE_SHENPI,b722);
	    mFlow2.put(XM_END_PAY_BALANCE_SHENPI_ID, b722);	 
	    
	    //质保金回收审批
	    BusinessFlowParam b724=	new BusinessFlowParam(XM_WARRANTY_SHENPI,XM_WARRANTY_SHENPI_ID,"xm_warranty","flow_status","/springMVC/workFlow/backFlowToXMWarrantyDeal");
	    mFlow.put(XM_WARRANTY_SHENPI,b724);
	    mFlow2.put(XM_WARRANTY_SHENPI_ID, b724);
	    //项目经济考评审批
	    BusinessFlowParam b725=	new BusinessFlowParam(XM_EVALUATION_SHENPI,XM_EVALUATION_SHENPI_ID,"xm_finance_evaluation","status","/springMVC/workFlow/backToGDUpdateEvaluation");
	    mFlow.put(XM_EVALUATION_SHENPI,b725);
	    mFlow2.put(XM_EVALUATION_SHENPI_ID, b725);
	    //项目合同审批
	    BusinessFlowParam b728=	new BusinessFlowParam(XM_CONTRACT_SHENPI,XM_CONTRACT_SHENPI_ID,"xm_contract","status","/springMVC/workFlow/backToGDUpdateContract");
	    mFlow.put(XM_CONTRACT_SHENPI,b728);
	    mFlow2.put(XM_CONTRACT_SHENPI_ID, b728);
	    //项目合同审批
	    BusinessFlowParam b729=	new BusinessFlowParam(XM_CONTRACT_NO_SHENPI,XM_CONTRACT_NO_SHENPI_ID,"","","/springMVC/workFlow/backToGDUpdateNoContract");
	    mFlow.put(XM_CONTRACT_NO_SHENPI,b729);
	    mFlow2.put(XM_CONTRACT_NO_SHENPI_ID, b729);
	    
	    //项目结算支付审批-施工
	    BusinessFlowParam b730=	new BusinessFlowParam(XM_END_WORKER_PAY_SHENPI,XM_END_WORKER_PAY_SHENPI_ID,"xm_pay","status","/springMVC/workFlow/backFlowToXMEndWorkerPayDeal");
	    mFlow.put(XM_END_WORKER_PAY_SHENPI,b730);
	    mFlow2.put(XM_END_WORKER_PAY_SHENPI_ID, b730);
	    
	    //项目结算支付审批-采购
    	BusinessFlowParam b731=	new BusinessFlowParam(XM_END_SUPPLY_PAY_SHENPI,XM_END_SUPPLY_PAY_SHENPI_ID,"xm_pay","status","/springMVC/workFlow/backFlowToXMEndSupplyPayDeal");
	    mFlow.put(XM_END_SUPPLY_PAY_SHENPI,b731);
	    mFlow2.put(XM_END_SUPPLY_PAY_SHENPI_ID, b731);	
	    //甲供材出库
	    BusinessFlowParam b733=	new BusinessFlowParam(XM_JGC_OUT_SHENPI,XM_JGC_OUT_SHENPI_ID,"xm_flow_out_warehouse","status","/springMVC/workFlow/backFlowToXMFlowOutWarehouseStatus");
	    mFlow.put(XM_JGC_OUT_SHENPI,b733);
	    mFlow2.put(XM_JGC_OUT_SHENPI_ID, b733);	
    }
    
    //库存审批
    public static final String CP_CUSTOMER_IN_SHENPI="客户库入库审批";
    public static final int CP_CUSTOMER_IN_SHENPI_ID=716;
    public static final String CP_SUPPLIER_IN_SHENPI="厂家库入库审批";
    public static final int CP_SUPPLIER_IN_SHENPI_ID=727;
    public static final String CP_INVENTORY_SHENPI="库存盘点审批";
    public static final int CP_INVENTORY_SHENPI_ID=723;
    //公共费用报销审批
    public static final String FINCEN_COMMONS="公共费用报销审批";
    public static final int FINCEN_COMMONS_ID=734;
    //借款审批
    public static final String FINCEN_LOAN="借款审批";
    public static final int FINCEN_LOAN_ID=735;
    static{
    	  BusinessFlowParam b716=	new BusinessFlowParam(CP_CUSTOMER_IN_SHENPI,CP_CUSTOMER_IN_SHENPI_ID,"customer_supplier_material","status","/springMVC/workFlow/backToGDUpdateGDProductStatus");
	  	  mFlow.put(CP_CUSTOMER_IN_SHENPI,b716);
	  	  mFlow2.put(CP_CUSTOMER_IN_SHENPI_ID, b716);		  
	  	  BusinessFlowParam b727=	new BusinessFlowParam(CP_SUPPLIER_IN_SHENPI,CP_SUPPLIER_IN_SHENPI_ID,"customer_supplier_material","status","/springMVC/workFlow/backToGDUpdateGDProductStatus");
	  	  mFlow.put(CP_SUPPLIER_IN_SHENPI,b727);
	  	  mFlow2.put(CP_SUPPLIER_IN_SHENPI_ID, b727);		  
	  	  BusinessFlowParam b723=	new BusinessFlowParam(CP_INVENTORY_SHENPI,CP_INVENTORY_SHENPI_ID,"db_inventory","status","/springMVC/workFlow/backToGDUpdateInventory");
	  	  mFlow.put(CP_INVENTORY_SHENPI,b723);
	  	  mFlow2.put(CP_INVENTORY_SHENPI_ID, b723);		  
	  	  BusinessFlowParam b734=	new BusinessFlowParam(FINCEN_COMMONS,FINCEN_COMMONS_ID,"finance_commons",null,null);
	  	  mFlow.put(FINCEN_COMMONS,b734);
	  	  mFlow2.put(FINCEN_COMMONS_ID, b734);	
	  	  BusinessFlowParam b735=	new BusinessFlowParam(FINCEN_LOAN,FINCEN_LOAN_ID,"finance_loan",null,null);
	  	  mFlow.put(FINCEN_LOAN,b735);
	  	  mFlow2.put(FINCEN_LOAN_ID, b735);		
    	
    }
    //员工审批
    public static final String LEAVE_SHENPI="员工请假审批";
    public static final int LEAVE_ID=736;
    static{
    	  BusinessFlowParam b736=	new BusinessFlowParam(LEAVE_SHENPI,LEAVE_ID,"oa_leave",null,null);
	  	  mFlow.put(LEAVE_SHENPI,b736);
	  	  mFlow2.put(LEAVE_ID, b736);		  
	  	 
    	
    }
  //---------------------------------------------------------------------------
    public static int getFlowIdByName(String name){
    	Object o=mFlow.get(name);
    	if (o==null){
    		return 0;
    	}else
    		return ((BusinessFlowParam)o).getFlowId();
    }
    public static String getFlowNameById(int flowId){
    	Object o=mFlow2.get(flowId);
    	if (o==null){
    		return null;
    	}else
    		return ((BusinessFlowParam)o).getFlowName();
    }
    public static String getTableName(int flowId){
    	Object o=mFlow2.get(flowId);
    	if (o==null){
    		return null;
    	}else
    		return ((BusinessFlowParam)o).getTableName();
    }
    public static String getTableFieldStatusName(int flowId){
    	Object o=mFlow2.get(flowId);
    	if (o==null){
    		return "status";
    	}else
    		return ((BusinessFlowParam)o).getFieldName();
    }
    public static String getBackUrl(int flowId){
    	Object o=mFlow2.get(flowId);
    	if (o==null){
    		return "null";
    	}else
    		return ((BusinessFlowParam)o).getBackUrl();
    }
}
